/**
 * 输入框输入限制
 * eg: v-inputLimit:number
 * number：只允许输入非负整数
 * float: 只允许输入非负浮点数
 */

import inputLimit from './inputLimit.js'
const install = function(Vue) {
  Vue.directive('inputLimit', inputLimit)
}

if (window.Vue) {
  window['inputLimit'] = inputLimit
    Vue.use(install); // eslint-disable-line
}

inputLimit.install = install
export default inputLimit
